Feat/follow management#321
Merged
Merged
Conversation
|
@Ezeh20 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Kaylahray
approved these changes
Jun 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Template
Description
Adds a complete frontend follow-management surface for profile pages, including follow and unfollow actions, follower and following counts, and modal list views.
This change connects the existing follower and following backend routes to the profile UI so users can manage social relationships directly from the frontend. It also keeps the UI in sync with backend mutation responses by refreshing follow state and counts after each action, and adds loading and error states for both profile mutations and follower list dialogs.
It also adds documentation for the feature in
app/docs/follow-management.md.Fixes #302
Checklist
npx prisma generateafter schema changesnpx prisma migrate devornpx prisma migrate deployas appropriateNotes:
corepack pnpm exec eslint app/profile/[userId]/page.tsx components/follow-list-dialog.tsx app/api/users/[id]/follow/route.tsnpx prisma generateapp/docs/follow-management.mdPost-Merge Steps for Maintainers
If this PR includes changes to the Prisma schema:
Run the following command to apply the migration to your database: